package com.boil.qz.safekavass.weixin.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * Created by ChenYong on 2017-05-10.
 * <br>
 * 举报列表的请求参数。
 */
public class ReportResListParam {
    /**
     * 举报人 openid
     */
    @NotBlank(message = "举报人openid不能为空")
    @Length(min = Constants.VALUE_1, max = Constants.VALUE_100, message = "举报人openid的长度在1至100个字之间")
    private String openid;
    /**
     * 页数
     */
    @NotNull(message = "页数不能为空")
    @Range(min = Constants.VALUE_L_1, max = Long.MAX_VALUE, message = "页数在1至9223372036854775807之间")
    protected Long page;

    /**
     * 默认构造器。
     */
    public ReportResListParam() {
        super();
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Long getPage() {
        return page;
    }

    public void setPage(Long page) {
        this.page = page;
    }
}